package com.bdqn.ch06SL.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;

/**
 * 定义包含增强方法的JavaBean
 */
public class AfterLogger {
    private static final Logger looger = Logger.getLogger(AfterLogger.class);

    @After("execution(* com.bdqn.service.UserService.*(..))")
    public void afterLogger(JoinPoint jp) {
        looger.info(jp.getSignature().getName() + "方法结束执行.");
    }
}
